<?php

namespace app\common\model\mycurrency;

use think\Model;


class AgentProfit extends Model
{

    

    

    // 表名
    protected $name = 'mycurrency_agent_profit';



    public function getCreatetimeAttr($value){
        return $value != null ? date('Y-m-d H:i:s', $value) : '';
    }
    

    public function agent()
    {
        return $this->belongsTo('app\admin\model\mycurrency\Agent', 'agent_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
